package cn.sylinx.horm.config;

import cn.sylinx.horm.transaction.jdbc.TransactionIsolation;

/**
 * jdbc事务隔离级别加载
 * 
 * @author johnhan
 *
 */
class TransactionIsolationLoader {

    private final OrmConfig ormConfig;

    TransactionIsolationLoader(OrmConfig ormConfig) {
        this.ormConfig = ormConfig;
    }

    void load() {
        TransactionIsolation.setTransactionIsolation(ormConfig.getTransactionIsolation());
    }
}
